import request from "@/utils/request.js";

//轮播请求接口
export function apiGetBanner(data) {
  return request.request({
    url: "/banner",
    data,
  });
}
// 推荐歌单请求接口
export function apiGetRecommendSong(data) {
  return request.request({
    url: "/personalized",
    data,
  });
}
//新碟新歌
export function apiGetTopAlbum(data) {
  return request.request({
    url: "/album/newest",
    data,
  });
}
//精选视频
export function apiGetRelatedVideo(data) {
  return request.request({
    url: "/related/allvideo",
    data,
  });
}
// 热搜版
export function apiGetSearchHot(data) {
	return request.request({
		url: '/search/hot/detail',
		method: 'GET',
		data
	})
}

// 搜索接口
export function apiGetSearchSuggest(data) {
	return request.request({
		url: '/search/suggest',
		data
	})
}

//歌单详情
export function apiAlbumDetail(data) {
	return request.request({
		url: '/playlist/detail',
		data
	})
}

//获取歌曲连接
export function apiGetSongUrl(data) {
	return request.request({
		url: '/song/url',
		data
	})
}

// 获取歌曲详情
export function apiGetSongDetail(data) {
	return request.request({
		url: '/song/detail',
		data
	})
}
